@font-face {
    font-family: WorkshopVF;
    src: url('../fonts/WorkshopVF.woff2');
}

@font-face {
    font-family: FrequencyVariable;
    src: url('../fonts/Frequency_Variable.woff2');
}

@font-face {
    font-family: SFUITextLight;
    src: url('../fonts/SFUIText-Light.woff');
}

:root {
    --margin-horizontal: 84px;
}

* {
    margin: 0;
    padding: 0;
}

.wrapper {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.home-header {
    position: fixed;
    top: 0;
    padding: 24px var(--margin-horizontal);
    box-sizing: border-box;
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.home-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-header__icon {
    width: 35px;
}

.home-header__title {
    font-size: 28px;
    font-weight: lighter;
    font-family: 'FrequencyVariable';
    color: #383838;
    text-transform: uppercase;
}

.home-header__right {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.home-header__item {
    font-weight: bold;
    color: #383838;
    text-decoration: none;
}


/* 首页主体部分样式 */

.home-body {
    height: 100vh;
    display: flex;
    overflow-x: scroll;
}

.home-body::-webkit-scrollbar {
    display: none;
}

.home-body__section {
    position: relative;
    height: 100%;
    width: 100vw;
    flex-shrink: 0;
}

.home-left {
    height: 100%;
    width: 100%;
}

.home-left__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-left__welcome-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.home-left__welcome {
    position: relative;
    padding: 0 var(--margin-horizontal);
    box-sizing: border-box;
    margin-bottom: 10vh;
}

.home-left__title-wrapper {
    position: relative;
    width: 42vw;
}

.home-left__title {
    position: relative;
    color: #2a2a2a;
    font-family: 'Arial Narrow Bold', sans-serif;
    font-size: 38px;
    font-weight: normal;
    transform-origin: 50% 50%;
}

.home-left__title-en {
    position: relative;
    top: 50px;
    font-family: 'FrequencyVariable';
    font-size: 48px;
    font-weight: lighter;
    color: #2a2a2a;
    opacity: 0;
}

.home-left__title-en-wrapper {
    position: absolute;
    top: 0;
    width: 42vw;
}

.home-left__desc {
    font-size: 20px;
    line-height: 2.4rem;
    margin-top: 28px;
    font-family: 'SFUITextLight';
    font-weight: lighter;
    text-align: justify;
}

.home-left__desc-en {
    position: relative;
    margin-top: 28px;
    line-height: 2.4rem;
    font-family: 'SFUITextLight';
    font-weight: lighter;
    word-break: break-word;
}

.home-left__personal-info {
    margin-top: 84px;
    position: relative;
}

.home-left__image {
    width: 60px;
    border-radius: 50%;
}

.home-left__name {
    position: absolute;
    left: 72px;
    top: 0px;
    font-size: 34px;
    font-family: 'FrequencyVariable';
    color: #383838;
}

.home-left__signature {
    position: absolute;
    top: 36px;
    left: 72px;
    color: rgb(141, 141, 141);
}

.home-left__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}


/* 黄色模糊小球 */

.home-left__background-circle1 {
    position: absolute;
    left: 28vw;
    top: 10vh;
    display: inline-block;
    width: 40vh;
    height: 40vh;
    border-radius: 50%;
    background-color: rgb(203, 214, 98, 0.8);
    filter: blur(100px);
}


/* 蓝色模糊小球 */

.home-left__background-circle2 {
    position: absolute;
    left: 12vw;
    top: 32vh;
    display: inline-block;
    width: 35vh;
    height: 35vh;
    border-radius: 50%;
    background-color: rgb(98, 206, 214, 0.5);
    filter: blur(120px);
}


/* 首页主题右侧部分内容样式 */

.home-right {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
}

.home-right__wrapper {
    width: 100%;
    height: 100%;
}

.home-right__3d {
    width: 100%;
    height: 100%;
}

.home-right__3d canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.home-right__3d canvas:hover {
    cursor: url('../images/hover-tip.svg') 4 12, auto;
}

#progress-bar {
    position: fixed;
    top: 0;
    height: 2px;
    width: 0;
    background: orange;
    transition: 0.8s ease-in-out;
}


/* 首页Section2样式 */

.index-wrapper {
    width: 100vw;
    height: 100vh;
    padding: 85px var(--margin-horizontal);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.index-header__title {
    color: #2a2a2a;
    font-family: 'Arial Narrow Bold', sans-serif;
    font-size: 38px;
    font-weight: normal;
}

.index-body {
    margin-top: 42px;
    width: 100%;
}

.index-body__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
}

.index-body__card {
    background-image: linear-gradient(#E9F7FD 0%, #E8F6FD 9.09%, #E7F1FC 18.18%, #E5EAFB 27.27%, #E3E2FA 36.36%, #E9DFF8 45.45%, #EFDDF6 54.55%, #F4DBF3 63.64%, #F2D9EA 72.73%, #F0D8E2 81.82%, #EFD7DE 90.91%, #EED7DC 100%);
    height: 20vh;
    border-radius: 4px;
    padding: 24px 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.index-body__card-title {
    font-size: 28px;
    font-family: 'Arial Narrow Bold', sans-serif;
}


/* 适配移动端 */

@media only screen and (max-width: 640px) {
     :root {
        --margin-horizontal: 24px;
    }
    .home-header__title {
        color: #111;
        font-size: 24px;
    }
    .home-header__item {
        font-size: 14px;
    }
    .home-left__welcome {
        margin-bottom: 40vh;
    }
    .home-left__title-wrapper {
        width: calc(100vw - 2 * var(--margin-horizontal))
    }
    .home-left__title {
        font-size: 24px;
    }
    .home-left__desc {
        font-size: 14px;
        line-height: 1.6rem;
        margin-top: 12px;
    }
    .home-left__title-en-wrapper {
        width: calc(100vw - 2 * var(--margin-horizontal))
    }
    .home-left__title-en {
        font-size: 28px;
    }
    .home-left__desc-en {
        font-size: 14px;
        line-height: 1.6rem;
        margin-top: 12px;
    }
    .home-left__image {
        width: 40px;
    }
    .home-left__name {
        left: 48px;
        top: 0px;
        font-size: 22px;
    }
    .home-left__signature {
        top: 24px;
        left: 48px;
        color: rgb(141, 141, 141);
        font-size: 12px;
    }
    .home-right {
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100vw;
    }
    .home-left__background {
        left: 0;
        top: 0;
        width: 100%;
        height: 50vh;
    }
    /* section2 */
    .index-header__title {
        font-size: 24px;
    }
    .index-body__cards {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        row-gap: 16px;
    }
    .index-body__card {
        background-image: linear-gradient(#f2f2f2, #f3eaea);
        height: 80px;
        border-radius: 4px;
        padding: 8px 12px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
    .index-body__card-title {
        font-size: 20px;
    }
}